/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.agilelang.editor.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import org.agilelang.editor.ViewFrame;
import org.agilelang.tool.generatordoc.GeneratorDoc;

public class ToolGenerateDoc implements ActionListener {

    ViewFrame frame;

    public ToolGenerateDoc(ViewFrame frame) {
        this.frame = frame;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (frame.getPathProject().equals("")) {
            JOptionPane.showMessageDialog(null, "Create a new Project",
                    "Error", JOptionPane.ERROR_MESSAGE);
            return;
        }
        GeneratorDoc doc = new GeneratorDoc(frame.getPathProject());
    }
}
